﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SWDataDB.Models;
using SWDataDB.DAL;
using SWDataDB.BLL;


namespace SWDataDB.BLL
{
    class KCInfoUpdate
    {
        public KCInfoUpdate(){}

        #region ===更新,传入对象===

        public int ZLInfoUpdate(ZL_TBL zl_info)
        {
            ZLInfo info = new ZLInfo();

            return info.UpdateZLInfo(zl_info);
        }

        public int YXInfoUpdate(YX_TBL yx)
        {
            YXInfo info = new YXInfo();

            return info.UpdateYXInfo(yx);
        }

        /// <summary>
        /// 实体信息录入
        public int UTILInfoUpdate(UTIL_TBL util)
        {
            UTILInfo info = new UTILInfo();

            return info.UpdateUtilInfo(util);
            /*            return 1;*/
        }

        public int XGDataUpdate(XGDATA_TBL xg)
        {
            XGInfo info = new XGInfo();

            return info.UpdateXGInfo(xg);
        }

        public int BBInfoUpdate(BB_INFO_TBL bb)
        {
            BBInfo info = new BBInfo();

            return info.UpdatebbInfo(bb);
        }

        public int BPInfoUpdate(BP_INFO_TBL bp)
        {
            BPInfo info = new BPInfo();

            return info.UpdatebpInfo(bp);
        }

        public int GPInfoUpdate(GP_INFO_TBL gp)
        {
            GPInfo info = new GPInfo();

            return info.UpdateGPInfo(gp);
        }

        public int YPInfoUpdate(YP_INFO_TBL yp)
        {
            YPInfo info = new YPInfo();

            return info.UpdateYPInfo(yp);

        }

        public int ZKImgUpdate(ZK_IMAGE_TBL img,int id)
        {
            ZKImageInfo info = new ZKImageInfo();

            return info.UpdateZKImgInfo(img,id);

        }

        public int BBImgUpdate(BB_IMAGE_TBL img, int id)
        {
            BBImageInfo info = new BBImageInfo();

            return info.UpdateBBImgInfo(img, id);

        }

        #endregion
    }
}
